/**

 * @author admin

 * 2014年7月5日

 */

package com.tmall.testgen.plugin.views.vo;

import org.eclipse.core.runtime.IAdaptable;

public class TreeObject implements IAdaptable {
	private boolean editable=true;
	
	
	/**
	 * 
	 */
	protected String name;
	private TreeParent parent;

	public TreeObject(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setParent(TreeParent parent) {
		this.parent = parent;
	}

	public TreeParent getParent() {
		return parent;
	}

	public String toString() {
		return getName();
	}

	public Object getAdapter(Class key) {
		return null;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isEditable() {
		return editable;
	}

	public void setEditable(boolean editable) {
		this.editable = editable;
	}

	
	
}
